﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using STT.Business;
using STT.Entities;
using STT.Layer.Connection;
using System.Data;

namespace STT.Admin.UserControls
{
    public partial class ucDonViThamGiaGiangDay : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        void LayDuLieu() 
        {
            DataTable dt = BTbDonVi.LayDonViThamGiaGV(Session["TenDN"].ToString());
            rpvGiangVien.Visible = true;
            rpvGiangVien.LocalReport.ReportPath = "RDLC\\TKeDonVi.rdlc";
            rpvGiangVien.LocalReport.DataSources.Clear();
            rpvGiangVien.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt));
        }
       

        protected void btTimKiem_Click(object sender, EventArgs e)
        {
            LayDuLieu();
        }

        protected void lbXuatDuLieu_Click(object sender, EventArgs e)
        {

        }
    }
}